
import  pickle

# def foo():
#     print("OK ")
#
# data = pickle.dumps(foo)
# f = open('PICKLE_test','wb')
# f.write(data)
# f.close()




def foo():
    print("OK ")
f = open('PICKLE_test','rb')

data = f.read()
data = pickle.loads(data)

data()